Reconstruction of a comet's orbit